package com.insuremonitor.system.domain;

import com.insuremonitor.common.annotation.Excel;
import com.insuremonitor.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 货物类型与费率的关系对象 front_insure_rate_goods
 * 
 * @author ruoyi
 * @date 2023-11-21
 */
public class FrontInsureRateGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 货物类型id */
    private Long insureGoodsId;

    /** 保险种类ID */
    @Excel(name = "保险种类ID")
    private Long insureKindId;

    /** 商品类型名称 */
    @Excel(name = "商品类型名称")
    private String goodsTypeName;

    /** 保险费率（单位%） */
    @Excel(name = "保险费率", readConverterExp = "单=位%")
    private BigDecimal goodsTypeRate;

    /** 状态（0删除 1正常） */
    @Excel(name = "状态", readConverterExp = "0=删除,1=正常")
    private String status;

    public void setInsureGoodsId(Long insureGoodsId)
    {
        this.insureGoodsId = insureGoodsId;
    }

    public Long getInsureGoodsId()
    {
        return insureGoodsId;
    }
    public void setInsureKindId(Long insureKindId)
    {
        this.insureKindId = insureKindId;
    }

    public Long getInsureKindId()
    {
        return insureKindId;
    }
    public void setGoodsTypeName(String goodsTypeName)
    {
        this.goodsTypeName = goodsTypeName;
    }

    public String getGoodsTypeName()
    {
        return goodsTypeName;
    }
    public void setGoodsTypeRate(BigDecimal goodsTypeRate)
    {
        this.goodsTypeRate = goodsTypeRate;
    }

    public BigDecimal getGoodsTypeRate()
    {
        return goodsTypeRate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("insureGoodsId", getInsureGoodsId())
                .append("insureKindId", getInsureKindId())
                .append("goodsTypeName", getGoodsTypeName())
                .append("goodsTypeRate", getGoodsTypeRate())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
